package com.ruoyi.web.controller.system;

import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.domain.entity.SysBoatWater;
import com.ruoyi.system.service.SysBoatWaterService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@Api(tags = "水质模块")
@RestController
@RequestMapping("boatwater")
public class SysBoatWaterController {

    @Resource
    SysBoatWaterService sysBoatWaterService;

    @ApiOperation("查询水质")
    @PostMapping("/getBoatWaterList")
    public AjaxResult getBoatWaterList(@RequestBody SysBoatWater param) {
        return sysBoatWaterService.getBoatWaterList(param);
    }
}
